#ifndef _APP_PROCOTOL_HH
#define _APP_PROCOTOL_HH

#define CMD_DEVICECONNECT              0x01
#define CMD_READPARAINFO                 0x02
#define CMD_READDEVICENAME           0x03


#define CMD_IAPUPDATE   0xB0
#define CMD_MACHINEIAPUPDATE   0xB1
#define CMD_READVERSION 0xB2
#define CMD_MACHINEREADVERSION 0xB3
#define CMD_IN_IAPMODE    0xB4
#define CMD_IN_MACHINEIAPMODE    0xB5

void iap_proctolparse(unsigned char *pBuf,unsigned int rcvLen,unsigned char uartdir);
void procotol_txpacket(unsigned char cmd,unsigned char *pdata,unsigned int len);

#endif
